<?php

use think\facade\Route;
use app\api\middleware\LoginMiddleware;
use app\api\middleware\UserVisitLog;

Route::group('upload', function () {
    //上传图片
    Route::post('image', 'Upload/image');
    //上传文件
    Route::post('file', 'Upload/file');
})->middleware([
    LoginMiddleware::class,
    UserVisitLog::class
]);